from sys import argv    # 导入sys模块，引入参数变量argument variable

script, filename = argv    # 将argv 解包，既把argv所有参数解包，一次赋予给左侧的变量

txt = open(filename, encoding='utf-8')    # 打开文件名为输入的文件，并返回文件对象

print (f"Here's your file {filename}:")    # 打印here is your file+文件名：
print (txt.read())    # 读取txt文件并打印

print ("Type the filename again:")    #打印字符串
file_again = input(">>> ")    # 再一次input 文件名

txt_again = open(file_again, encoding='utf-8')    # 打开输入的文件名的文件

print (txt_again.read())    # 读取txt_againwenjian,并打印
